package dwz.common.util;

import java.util.HashMap;
import java.util.Map;
/**
 * 二字定的在数组中的位置
 * @author Administrator
 *
 */
public class ErZiDingOffsetUtils {
	
	public static final Map<String, Integer> ooxxMap = new HashMap<String, Integer>();
	public static final Map<String, Integer> oxoxMap = new HashMap<String, Integer>();
	public static final Map<String, Integer> oxxoMap = new HashMap<String, Integer>();
	public static final Map<String, Integer> xxooMap = new HashMap<String, Integer>();
	public static final Map<String, Integer> xoxoMap = new HashMap<String, Integer>();
	public static final Map<String, Integer> xooxMap = new HashMap<String, Integer>();
	public static final Map<Integer, Map<String, Integer> > totalMap = new HashMap<Integer, Map<String,Integer>>();
	static{
			int a=0,b=0,c=0,d=0,e=0,f=0;
			for(int i=0;i<10;i++){
				for(int k=0;k<10;k++){
					ooxxMap.put(i+""+k+"XX", a++);
					oxoxMap.put(i+"X"+k+"X", b++);
					oxxoMap.put(i+"XX"+k, c++);
					xxooMap.put("XX"+i+""+k, d++);
					xoxoMap.put("X"+i+"X"+k, e++);
					xooxMap.put("X"+i+""+k+"X", f++);
				}
			}
			totalMap.put(1, ooxxMap);
			totalMap.put(2, oxoxMap);
			totalMap.put(3, oxoxMap);
			totalMap.put(4, xxooMap);
			totalMap.put(5, xoxoMap);
			totalMap.put(6, xooxMap);
	}
	
	public static void main(String[] args) {
		System.out.println(ooxxMap.get("12XX"));
	}
	
}
